#include "Node.h"
#include <d3dx9.h>

Node::Node(int id,int x1, int y1, int x2, int y2)
{
	_id = id;
	_x1 = x1;
	_y1 = y1;
	_x2 = x2;
	_y2 = y2;
	lt = NULL;
	lb = NULL;
	rt = NULL;
	rb = NULL;
	
}

Node::~Node(void)
{
	delete this->lt;
	delete this->rt;
	delete this->lb;
	delete this->rb;
}

void Node::addGameObject(Object *_obj)
{
	_list.push_back(_obj);
}